//
//  CTile.cpp
//  match2
//
//  Created by Tri Vo on 7/15/13.
//
//

#include "CTile.h"

using namespace cocos2d;



CTile::~CTile() {
    
}

#pragma mark - Delegate Methods


#pragma mark - Static Methods

CTile* CTile::spriteWithFilename(const char* pNormalFilename, const char* pSelectedFilename, CCObject *pSender, SEL_MenuHandler sel) {
    CTile *pTile = new CTile();
    pTile->setNormalImage(CCSprite::create(pNormalFilename));

    pTile->setDisabledImage(CCSprite::create(pSelectedFilename));
    pTile->setTag(0);
    pTile->setIsSelected(false);
    pTile->setTarget(pSender, sel);

    return pTile;
}
